﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.PoModel.SystemManager;

namespace SystemCenterSoa.Repository.CommonLib
{
    public class SystemCenterDbSoaContext: DbContext
    {
        /// <summary>
        /// 把 options通过base() 传给父类的构造函数
        /// </summary>
        /// <param name="options"></param>
        public SystemCenterDbSoaContext(DbContextOptions<SystemCenterDbSoaContext> options) : base(options)
        {

        }
        public DbSet<ModulePo> ModulePo { get; set; }

        public DbSet<RoleModuleRelationPo> RoleModuleRelationPo { get; set; }
        public DbSet<AdminUserRoleRelationPo> AdminUserRoleRelationPo { get; set; }
        public DbSet<RolePo> RolePo { get; set; }
        public DbSet<AdminUserPo> AdminUserPo { get; set; }
        public DbSet<WebSystemMenuPo> WebSystemMenuPo { get; set; }
    }
}
